﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ninject.Modules;
using Ninject.Web.Common;
using Persistance;
using Repository;

namespace WebServices.Infrastructure
{
    public class ServiceModules : NinjectModule
    {
        public override void Load()
        {
            Bind<IUnitOfWork>().To<UnitOfWork>().InRequestScope();
            Bind<IGestionCompte>().To<GestionCompte>().InRequestScope();
            Bind<IGestionProjet>().To<GestionProjet>().InRequestScope();
            Bind<CustomValidator>().To<CustomValidator>().InRequestScope();
        }
    }
}